package com.ruoyi.system.domain.equipment;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @description:
 * @author: zhengxiong.jiang
 * @createDate: 2023/3/1
 * @version: 1.0
 */
@Data
public class EquipmentBookDTO {


    @ApiModelProperty(value = "设备台账主键id")
    private Long bookId;

    /** 设备台账编码 */
    @ApiModelProperty(value = "设备台账编码")
    private String bookCode;

    /** 设备台账名称 */
    @ApiModelProperty(value = "设备台账名称")
    private String bookName;

    /** 区域名称 */
    @ApiModelProperty(value = "区域名称")
    @Excel(name = "区域名称")
    private String shopName;

    /** 设备类型id */
    @ApiModelProperty(value = "设备类型id")
    private Long typeId;

    /** 设备类型名称 */
    @ApiModelProperty(value = "设备类型名称")
    private String typeName;

    /** 产线id */
    @ApiModelProperty(value = "产线id")
    private Long shopId;


    /** 设备型号 */
    @ApiModelProperty(value = "设备型号")
    private String bookModel;

    /** 主要证书编号 */
    @ApiModelProperty(value = "主要证书编号")
    private String parameter;

    /** 校准周期 */
    @ApiModelProperty(value = "校准周期")
    private Integer totalPower;

    @ApiModelProperty(value = "设备部件")
    private String bookUnit;

    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date productionDate;

    @ApiModelProperty(value = "出厂编号")
    private String productionNumber;

    @ApiModelProperty(value = "校准时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyDate;

    @ApiModelProperty(value = "重要度")
    private String importance;

    @ApiModelProperty(value = "最近检定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastDate;

    @ApiModelProperty(value = "生产厂家")
    private String specialBook;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "使用部门id")
    private Long makeDeptId;

    @ApiModelProperty(value = "使用部门名称")
    private String makeDeptName;

    @ApiModelProperty(value = "维护部门id")
    private Long standDeptId;

    @ApiModelProperty(value = "维护部门名称")
    private String standDeptName;

    @ApiModelProperty(value = "提前预警天数")
    private Integer alertDays;

}
